package com.ruoyi.mobile.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 文章对象 article
 * 
 * @author ruoyi
 * @date 2022-09-19
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 已阅读人数 */
    @Excel(name = "已阅读人数")
    private Integer readCount;

    /** 需要多少次打卡可以解锁该文章 */
    private Integer unlockCheckinCount;

    /** 是否置顶(0否 1是) */
    @Excel(name = "是否置顶(0否 1是)")
    private Integer topFlag;

    /** 是否首页展示(0否,1是) */
    @Excel(name = "是否首页展示(0否,1是)")
    private Integer showMain;

    /** 状态(0正常 1停用) */
    @Excel(name = "状态(0正常 1停用)")
    private String status;

    /** 展示顺序，越大排序越靠前 */
    @Excel(name = "展示顺序，越大排序越靠前")
    private Integer orderNum;

    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;

    private List<Integer> tagIds;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReadCount(Integer readCount) 
    {
        this.readCount = readCount;
    }

    public Integer getReadCount() 
    {
        return readCount;
    }
    public void setUnlockCheckinCount(Integer unlockCheckinCount) {
        this.unlockCheckinCount = unlockCheckinCount;
    }

    public Integer getUnlockCheckinCount() {
        return unlockCheckinCount;
    }
    public void setTopFlag(Integer topFlag)
    {
        this.topFlag = topFlag;
    }

    public Integer getTopFlag() 
    {
        return topFlag;
    }
    public void setShowMain(Integer showMain) 
    {
        this.showMain = showMain;
    }

    public Integer getShowMain() 
    {
        return showMain;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<Integer> getTagIds() {
        return tagIds;
    }

    public void setTagIds(List<Integer> tagIds) {
        this.tagIds = tagIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("content", getContent())
            .append("unlockCheckinCount", getUnlockCheckinCount())
            .append("readCount", getReadCount())
            .append("topFlag", getTopFlag())
            .append("showMain", getShowMain())
            .append("status", getStatus())
            .append("orderNum", getOrderNum())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
